package org.gis.mapserver.suppliers.sources.sample;

import java.io.IOException;
import java.io.InputStream;
import org.gis.mapserver.source.Source;
import org.gis.mapserver.source.SourceType;

/**
 *
 * @author gus
 */
class SampleSource implements Source
{
    private InputStream stream;

    SampleSource( InputStream openStream )
    {
        stream = openStream;
    }

    public void dispose() throws Exception
    {
        stream.close();
    }

    public InputStream getStream()
    {
        return stream;
    }

    public SourceType getSourceType()
    {
        return SourceType.PngImage;
    }
}
